
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>杨青个人</title>
<meta name="keywords" content="关键词,关键词,关键词,关键词,5个关键词" />
<meta name="description" content="网站简介，不超过80个字" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="./front/css/index.css" rel="stylesheet">
<script src="./front/js/jquery.min.js"></script>
<script src="./front/js/comm.js"></script>
<!--[if lt IE 9]>
<script src="js/modernizr.js"></script>
<![endif]-->
</head>
<body>
	<header>
		<div class="logo">杨青个人博客</div>
		<div class="top-nav">
			<h2 id="mnavh">
				<span class="navicon"></span>
			</h2>
			<ul id="nav">
				<li><a href="index" class="selected">网站首页</a></li>
				<c:if test="${fenlei!=null}">
					<c:forEach items="${fenlei}" var="tion">
						<li><a href="main?cid=${tion.cid}">${tion.cName}</a></li>
					</c:forEach>
				</c:if>
				<li><a href="Aboutme">关于我</a></li>
				<li><a href="Leaves">留言</a></li>
				<c:if test="${userz!=null}">
					<li><a href="indexs">${userz.userName}</a></li>
					<li><a href="tuichu">退出</a>
				</c:if>
				<c:if test="${userz==null}">
					<li><a href="login.html">登录</a></li>
				</c:if>
			</ul>

		</div>
	</header>
	<aside class="side">
		<div class="about">
			<i><a href="/"><img src="./front/images/avatar.jpg"></a></i>
			<p>杨青，一个80后草根女站长！09年入行。一直潜心研究web前端技术，一边工作一边积累经验，分享一些个人博客模板，以及SEO优化等心得。</p>
		</div>
		<div class="weixin">
			<img src="./front/images/wx.jpg">
			<p>关注我 么么哒！</p>
		</div>
	</aside>
	<main>

	<div class="main-content">
		<div class="welcome">您好，欢迎您访问我们的官方网站!</div>
		<div class="newsbox">
			<section>
				<div class="news">
					<h2 class="newstitle">
						<b>本栏推荐</b>
					</h2>
					<c:if test="${ContentMain6!=null}">
						<ul>
							<c:forEach items="${ContentMain6}" var="content">
								<li><a href="info/${content.tid}"> <span> <fmt:formatDate
												value="${content.tcreationtime}" pattern="MM-dd" /></span>
										${content.tcontentheader}
								</a></li>
							</c:forEach>
						</ul>
					</c:if>
				</div>
			</section> 
			<c:if test="${ContentMain1!=null}">
				<section>
					<div class="news">
						<h2 class="newstitle">
							<span><a href="main?cid=1">更多</a></span><b>个人博客日记</b>
						</h2>
						<ul>
							<c:forEach items="${ContentMain1}" var="content">
								<li><a href="info/${content.tid}"> <span> <fmt:formatDate
												value="${content.tcreationtime}" pattern="MM-dd" /></span>
										${content.tcontentheader}
								</a></li>
							</c:forEach>
						</ul>
					</div>
				</section>
			</c:if>
			<c:if test="${ContentMain2!=null}">
				<section>
					<div class="news">
						<h2 class="newstitle">
							<span><a href="main?cid=2">更多</a></span><b>个人博客模板</b>
						</h2>
						<ul>
							<c:forEach items="${ContentMain2}" var="content">
								<li><a href="info/${content.tid}"> <span> <fmt:formatDate
												value="${content.tcreationtime}" pattern="MM-dd" /></span>
										${content.tcontentheader}
								</a></li>
							</c:forEach>
						</ul>
					</div>
				</section>
			</c:if>
			<c:if test="${ContentMain3!=null}">
				<section>
					<div class="news">
						<h2 class="newstitle">
							<span><a href="main?cid=3">更多</a></span><b>博客网站制作</b>
						</h2>
						<ul>
							<c:forEach items="${ContentMain3}" var="content">
								<li><a href="info/${content.tid}"> <span> <fmt:formatDate
												value="${content.tcreationtime}" pattern="MM-dd" /></span>
										${content.tcontentheader}
								</a></li>
							</c:forEach>
						</ul>
					</div>
				</section>
			</c:if>
			<c:if test="${ContentMain4!=null}">
				<section>
					<div class="news">
						<h2 class="newstitle">
							<span><a href="main?cid=4">更多</a></span><b>网页设计心得</b>
						</h2>
						<ul>
							<c:forEach items="${ContentMain4}" var="content">
								<li><a href="info/${content.tid}"> <span> <fmt:formatDate
												value="${content.tcreationtime}" pattern="MM-dd" /></span>
										${content.tcontentheader}
								</a></li>
							</c:forEach>
						</ul>
					</div>
				</section>
			</c:if>
			<c:if test="${ContentMain5!=null}">
				<section>
					<div class="news">
						<h2 class="newstitle">
							<span><a href="main?cid=5">更多</a></span><b>网页设计素材</b>
						</h2>
						<ul>
							<c:forEach items="${ContentMain5}" var="content">
								<li><a href="info/${content.tid}"> <span> <fmt:formatDate
												value="${content.tcreationtime}" pattern="MM-dd" /></span>
										${content.tcontentheader}
								</a></li>
							</c:forEach>
						</ul>
					</div>
				</section>
			</c:if>
		</div>
		<div class="blank"></div>
		<div class="copyright">
			<p>
				Copyright 2018 Inc. AllRights Reserved. Design by <a href="/">杨青个人博客</a>
				蜀ICP备11002373号-1
			</p>
		</div>
	</div>
	</main>
	<a href="#" class="cd-top cd-is-visible">Top</a>
</body>
</html>
